<?php

/**
 * Description of ConnectFileGenerator
 *
 * @author David Safranek <safrad@rosada.cz>
 */

class ConnectFileGenerator extends FileGeneratorAbstract {

	public static function include2string($file) {
			ob_start();
			include($file);
			return ob_get_clean();
	}

	protected function forceGenerate() {
		$result = '';
		foreach ($this->getSources() as $source) {
			$result .= $this->include2string($source);
		}
		file_put_contents($this->getTarget(), $result);
	}

}
